package io.geekidea.boot.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.geekidea.boot.shop.entity.GradeLevel;
import io.geekidea.boot.shop.query.app.AppGradeLevelQuery;
import io.geekidea.boot.shop.query.web.GradeLevelQuery;
import io.geekidea.boot.shop.vo.app.AppGradeLevelVo;
import io.geekidea.boot.shop.vo.web.GradeLevelVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 11个等级 Mapper 接口
 *
 * @author geekidea
 * @since 2024-10-27
 */
@Mapper
public interface GradeLevelMapper extends BaseMapper<GradeLevel> {

    /**
     * 11个等级详情
     *
     * @param id
     * @return
     */
    GradeLevelVo getGradeLevelById(Long id);

    /**
     * 11个等级分页列表
     *
     * @param query
     * @return
     */
    List<GradeLevelVo> getGradeLevelPage(GradeLevelQuery query);

    /**
     * App11个等级详情
     *
     * @param id
     * @return
     */
    AppGradeLevelVo getAppGradeLevelById(Long id);

    /**
     * App11个等级分页列表
     *
     * @param query
     * @return
     */
    List<AppGradeLevelVo> getAppGradeLevelPage(AppGradeLevelQuery query);

}
